const config = require('./config');
const Sequelize = require('sequelize');

module.exports = new Sequelize(config.dbName, config.user, config.pass, {
    host: config.host,
    dialect: config.dialect,
    // dialectOptions: {
    //     charset: 'utf8'
    //  },
    // define: {
    //     charset: 'utf8',
    //     dialectOptions: {
    //     collate: 'utf8_general_ci'
    //     },
    // },
    pool: config.pool
});